package com.mzw.utils;

import com.mzw.service.EmailService;

/**
 * @author L1nAn
 * 发送消息
 */
public class SendMessageUtil {
   public static void sendMessageSucceed(EmailService emailService, String emailAddress) {
      emailService.sendEmail(emailAddress, "任务通知", "您的任务执行成功，请及时查看");
   }
   public static void sendMessageFail(EmailService emailService, String emailAddress, String execMessage) {
      emailService.sendEmail(emailAddress, "任务通知", "您的任务执行失败，原因为：" + execMessage);
   }
}
